package com.example.chapter3boot_mybatis.Service;

import com.example.chapter3boot_mybatis.dao.EmployeeDao;
import com.example.chapter3boot_mybatis.entity.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmployeeService {
    @Autowired
    EmployeeDao employeeDao;


    public Employee getEmp(Integer empno) {
        return employeeDao.getById(empno);
    }
}
